import request from '@/utils/request'


/**
 *  发送验证码
 *  send code
 */
export const sendVcode = data => {
  return request({
    url: '/code/sendEmail',
    method: 'POST',
    data
  })
}

export const sendSuccessEmail = data => {
  return request({
    url: '/code/sendSuccessEmail',
    method: 'POST',
    data
  })
}

export const sendFailEmail = data => {
  return request({
    url: '/code/sendFailEmail',
    method: 'POST',
    data
  })
}


/**
 *  校验验证码
 *  send code
 */
export const verifyCode = data => {
  return request({
    url: '/code/verifyCode',
    method: 'POST',
    data
  })
}
